//
//  HomeTableViewCell.h
//  FD
//
//  Created by xiaofang wang on 2018/12/7.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol HomeGoodsDetailTableViewCellDelegate <NSObject>
/**
 计算出配料的总价格

 @param ingredientSumPrice 选择的配料的总价
 tips 请 + 主食(staple)的价格
 */
- (void)didCalculateIngredientTotalPrice:(CGFloat)ingredientSumPrice;

/**
 12-21 根据选择先后顺序保存到数组中

 @param ingredientTagArr 多选tagId被选中数组
 @param tagId 单选的tagId。
 */
//- (void)didSelectIngredientTagArr:(NSArray *)ingredientTagArr singleSelTag:(NSNumber *)tagId;

@end


@interface HomeGoodsDetailTableViewCell : UITableViewCell

/**代理*/
@property (nonatomic, weak) id <HomeGoodsDetailTableViewCellDelegate> delegate;

/**设置数据源 & 刷新collectionView 显示数据*/
- (void)hgdtcellReloaddataWithIngredientClassifyListArr:(NSArray *)ingredientClassifyListArr;

@end


NS_ASSUME_NONNULL_END


/**服务器参考数据:
 {"event":"SUCCESS","data":{"timeLimit":0,"quietTime":"00:00:00","thumbnail":"public/99966fdda85c4fc8b551fedc8359b5b8","originalPrice":12.00,"ingredientClassifyList":[{"name":"Toppings","only":0,"ingredientList":[{"originalPrice":12.00,"name":"Ham","currentPrice":12.00,"id":990},{"originalPrice":1.00,"name":"Beef mince","currentPrice":1.00,"id":996},{"originalPrice":12.00,"name":"Salami","currentPrice":12.00,"id":997}],"defaultSelect":-1,"id":2,"free":0,"required":0},{"name":"Size","only":1,"ingredientList":[{"originalPrice":12.00,"name":"12","currentPrice":12.00,"id":991},{"originalPrice":123.00,"name":"10","currentPrice":123.00,"id":992},{"originalPrice":12.00,"name":"white cheddar cheese","currentPrice":12.00,"id":993},{"originalPrice":12.00,"name":"14","currentPrice":12.00,"id":994}],"defaultSelect":991,"id":1,"free":0,"required":1}],"activeTime":"00:00:00","currentPrice":12.00,"onSale":1,"richtext":"public/18756cf1cc46464b880bbf4222ca2b23","id":212,"title":"1"},"describe":""}
 */
